package com.yidusoft.service.impl;

import com.yidusoft.dao.SecUserMapper;
import com.yidusoft.domain.SecRole;
import com.yidusoft.domain.SecUser;
import com.yidusoft.service.SecUserService;
import com.yidusoft.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


/**
 * Created by CodeGenerator on 2017/07/16.
 */
@Service
@Transactional
public class SecUserServiceImpl extends AbstractService<SecUser> implements SecUserService {
    @Resource
    private SecUserMapper secUserMapper;

    @Override
    public List<SecUser> userListByRoleId(String roleId) {

        return secUserMapper.userListByRoleId(roleId);
    }

    @Override
    public SecUser getSecUserInfo(String account) {
        return secUserMapper.getSecUserInfo(account);
    }

    @Override
    public List<SecUser> roleUserName(String id) { return secUserMapper.roleUserName(id); }

    @Override

    public List roleChooseUser(Map map){ return secUserMapper.roleChooseUser(map);};

    @Override
    public  List<SecUser> getQueryAll(SecUser secUser){
        return secUserMapper.getQueryAll(secUser);
    }

    @Override
    public List<SecRole> getUserNoRoleList(String[] arr) {
        return secUserMapper.getUserNoRoleList(arr);
    }
}
